import sys, traceback


def run_user_code(envdir):
    source = input(">>>")
    try:
        exec(source, envdir)
    except Exception:
        print("Exception in user code")
        print("-"*60)
        traceback.print_exc(file=sys.stdout)
        print("-"*60)


envdir = {}
run_user_code(envdir)